﻿Ext.define('Examples.autocomplex.independentdetail.metadata.Metadata', {
    extend: 'Happy.metadata.Metadata',
    singleton: true,

    data: {
        namespace: 'Examples.autocomplex',
        name: 'IndependentDetail',
        plural: 'IndependentDetails',
        lifeCycle: 'independent',
        lazyLoad: true,
        proxy: {
            actionMethods: {
                create: 'GET',
                read: 'GET',
                update: 'GET',
                destroy: 'GET'
            },
            api: {
                create: 'app/independentdetail/server/create.txt',
                read: 'app/independentdetail/server/read.txt',
                load: 'app/independentdetail/server/load.txt',
                update: 'app/independentdetail/server/update.txt',
                destroy: 'app/independentdetail/server/destroy.txt'
            }
        },
        properties: {
            Id: {
                name: 'Id',
                dataType: "Guid"
            },
            Name: {
                name: 'Name',
                dataType: "String"
            },
            RootId: {
                name: 'RootId',
                dataType: "Guid"
            }
        }
    }
});